package com.basker.pisces.domain.property.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.basker.pisces.domain.entity.meta.BeanEntity;
import com.basker.pisces.domain.property.meta.Property;

/**
 * 标记{@link BeanEntity}的方法，返回一个{@link Property}实例
 *
 * @author hangwen
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD})
public @interface PropertyMeta {

    /**
     * 属性所属实体，默认表示根实体
     *
     * @return
     */
    String hostEntity() default "";

}
